package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.BrandDao;
import com.ericom.model.Brand;
import com.ericom.service.BrandManager;
@Service("brandManager")
public class BrandManagerImpl extends GenericManagerImpl<Brand, Long> implements
		BrandManager {
	
	BrandDao brandDao;
	@Autowired
	public BrandManagerImpl(BrandDao brandDao){
		super(brandDao);
		this.brandDao=brandDao;
	}

	public List<Brand> findByName(String name) {
		
		return this.brandDao.findByName(name);
	}

}
